package com.zhenhao.xsq.base;

import android.app.Activity;
import android.view.View;
import android.widget.FrameLayout;

import com.zhenhao.xsq.R;


/**
 * Created by William on 2020/5/12.
 */
public class BasePager {
    public Activity mActivity;

    public FrameLayout flContent;// 空的帧布局对象, 要动态添加布局

    public View rootView;// 当前页面的布局对象


    public BasePager(Activity activity) {
        mActivity = activity;
        rootView = initView();
    }

    private View initView() {
        View view = View.inflate(mActivity, R.layout.base_pager, null);
//        flContent = (FrameLayout) view.findViewById(R.id.fl_content);
        return view;
    }

    // 初始化数据
    public void initData() {

    }
}
